import httpInstance from '@/utils/http'

export function getBannerAPI(params = {}) {
  const { distributionSite = '1' } = params
  return httpInstance({
    url: '/home/banner',
    params: {
      distributionSite
    }
  })
}

/**
 * @description: 获取新鲜好物
 * @param {*}
 * @return {*}
 */
export const findNewAPI = () => {
  return httpInstance({
    url: '/home/new'
  })
}

export const findHotAPI = () => {
  return httpInstance({
    url: 'home/hot',
    method: 'get'
    // 其他配置项可以在这里添加
  })
}

export const getGoodsAPI = () => {
  return httpInstance({
    url: '/home/goods'
  })
}
